package com.avengers.mobile.layer.serviceimpl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import com.avengers.mobile.layer.dao.UserDao;
import com.avengers.mobile.layer.model.Usuario;
import com.avengers.mobile.layer.service.UserService;



@Service("userService")
@Scope("singleton")
public class UserServiceImpl implements UserService {
 
	@Autowired
	UserDao beanUserDao;
 
 

	public Usuario validaLogin(Object[] params) throws Exception { 
		return beanUserDao.validaLogin(params);
	}
	
	public Usuario findUsuarioById(int id) throws Exception{
		return beanUserDao.findUsuarioById(id);
	}
}